package com.pattern.composite;


import com.pattern.decorator.Comopent;

/**
 * @Description: 组合部件，用户声明访问和管理接口
 * @Author: whp
 * @Date: 2021-02-07 14:44
 */
public abstract class Component {


    public abstract void add(Component comopent);
    public abstract void remove(Component comopent);
    public abstract void display(int level);
    public abstract Component getChild(int i);
    public abstract void operation();

}
